<%--
  Created by IntelliJ IDEA.
  User: 0927
  Date: 2020/10/13
  Time: 20:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@page isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<div class="row">
    <c:if test="${empty collViews}">
        <div style="text-align: center; height: 100%">
            <div style="margin-top: 20%">
                <div style="margin-bottom: 10px;font-size: 30px;color: #757f89;text-align: center;">
                    暂无收藏车辆
                </div>
                <div style="text-align: center;">
                    <a href="${pageContext.request.contextPath}/NavJsp/toBuyCar" style="font-size: 16px; color: #22ac38;">
                        去逛逛瓜子海量车源
                    </a>
                </div>
            </div>

        </div>
    </c:if>

    <c:forEach var="p" items="${collViews}" begin="0" end="100">
        <div class="col-md-4">
            <div class="thumbnail" >
                <a href="${pageContext.request.contextPath}/cardetail/infor?id=${p.id}">
                    <img src="${pageContext.request.contextPath}/images/car1.png"
                         alt="" style="width: 80%;">
                </a>
                <div class="caption car_info ">
                    <p class="h2" style="font-size: 15px">
                        <a class="ahoner" href="${pageContext.request.contextPath}/cardetail/infor?id=${p.id}">
                                ${p.brName} ${p.stName} ${p.cPaifang}L ${p.cDrive}
                        </a>
                    </p>
                    <span class="mile">${p.cRegistration}年 | ${p.cMileage}万公里 | 到店服务</span>
                    <p style="margin-top: 5px"><span style="color: #f76367;font-size: 18px">${p.cOprice}万</span>
                        <span class="through">${p.cOprice}万</span>
                        <span style="float: right"><a onclick='del(this,${p.id})' class="text-danger" href="javascript:void(0);"><span class="glyphicon glyphicon-trash"></span></a></span>
                    </p>
                </div>
            </div>
        </div>
    </c:forEach>
</div>
<div class="loading-more row">已到最后一页</div>